package com.probox.common.entity.domain.customer;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import com.probox.common.core.annotation.Excel;

/**
 * 付费规则对象 payment_rule
 *
 * @author zsy
 * @date 2021-05-27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("payment_rule")
@ApiModel(description="付费规则类")
public class PaymentRule implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 规则ID
     */
    //默认主键自增
    @ApiModelProperty(value = "规则ID")
    @TableId(value = "RULE_ID", type = IdType.AUTO)
    private Long ruleId;
    /**
     * 平台ID
     */
    @ApiModelProperty(value = "平台ID")
    @Excel(name = "平台ID")
    private Long platformId;
    /**
     * 有效期
     */
    @ApiModelProperty(value = "有效期")
    @Excel(name = "有效期")
    private String periodValidity;
    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    @Excel(name = "价格")
    private BigDecimal price;
    /**
     * 有效期天数
     */
    @ApiModelProperty(value = "有效期天数")
    @Excel(name = "有效期天数")
    private Integer periodValidityNumber;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Excel(name = "创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @Excel(name = "修改人")
    private Long updateUser;


    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 修改人名称
     */
    @ApiModelProperty(value = "修改人名称")
    @Excel(name = "修改人名称")
    private String updateName;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String dataStatus;
}
